Socket
Socket
Sign inDemoInstall

@changesets/read

Package Overview
Dependencies
8
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@changesets/read


Version published
Weekly downloads
577K
decreased by-14.41%
Maintainers
3
Created
Weekly downloads
 

Package description

What is @changesets/read?

@changesets/read is an npm package that provides utilities for reading and parsing changeset files. Changesets are used to manage versioning and changelogs in a project, and this package helps in extracting and interpreting the information contained in those changesets.

What are @changesets/read's main functionalities?

Reading Changesets

This feature allows you to read a changeset file from a specified path. The `readChangeset` function reads the changeset file and returns its contents, which can then be used for further processing.

const { readChangeset } = require('@changesets/read');
const path = require('path');

async function readExample() {
  const changesetPath = path.join(__dirname, '.changeset', 'example-changeset.md');
  const changeset = await readChangeset(changesetPath);
  console.log(changeset);
}

readExample();

Reading All Changesets

This feature allows you to read all changeset files from a specified directory. The `readChangesets` function reads all changeset files in the directory and returns their contents as an array.

const { readChangesets } = require('@changesets/read');
const path = require('path');

async function readAllExample() {
  const changesetsDir = path.join(__dirname, '.changeset');
  const changesets = await readChangesets(changesetsDir);
  console.log(changesets);
}

readAllExample();

Other packages similar to @changesets/read

Readme

Source

@changesets/read

View changelog

Read in all changesets from a repository.

import read from "@changesets/read";

let changesets = await getChangesets(cwd);

This returns an array of formatted changesets.

FAQs

Last updated on 18 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc